<template>
    <div>
        <component :is="one"></component>

        <div id="container">
            <div id="content2">
                <table width="100%" height="41" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                        <td width="15" height="18" align="left" valign="top">
                            <div align="left"></div>
                        </td>
                        <td width="385" align="left" valign="bottom" class="12">&nbsp;</td>
                    </tr>
                    <tr>
                        <td height="4" colspan="2" align="left" valign="bottom"></td>
                    </tr>
                    <tr>
                        <td height="15" align="left" valign="top">&nbsp;</td>
                        <td height="15" align="left" valign="top" class="12">
                            <table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td height="20" align="center">
                                        <div class="right_proaducts">
                                            <div align="left">我的位置&gt;&gt;科技项目申报&gt;项目详细信息</div>
                                        </div>
                                        <form action="" method="post" id="form">
                                            <!-- <DIV class=padding>
                                                <DIV id=middlebody> -->
                                                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                                        <tbody>
                                                            <tr>
                                                                <td>
                                                                    <div align="left">
                                                                        |&nbsp;&nbsp;欢迎,单位用户&nbsp;&nbsp;|&nbsp;&nbsp;
                                                                        <a class="table_t"
                                                                            href="#/">注销      </a>&nbsp;&nbsp;|&nbsp;&nbsp;
                                                                        <a
                                                                            href="javascript:history.go(-1)">后退</a>&nbsp;&nbsp;|
                                                                    </div>
                                                                </td>
                                                                <td>
                                                                    <div align="center"><a
                                                                            href="#/unit/unitinfo">单位信息</a></div>
                                                                </td>
                                                                <td>
                                                                    <div align="center"><a
                                                                            href="#/unit/reworkpassword">修改密码</a>
                                                                    </div>
                                                                </td>
                                                                <td>
                                                                    <div align="center"><a
                                                                            href="#/unit/showprojectcategory">项目申报管理</a>
                                                                    </div>
                                                                </td>
                                                                <td height="50">
                                                                    <div align="center"><a
                                                                            href="#/unit/simplesearch">信息查询</a>
                                                                    </div>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                    <table id="app" width="50%" border="0" cellpadding="0"
                                                        cellspacing="1">
                                                        <input type="hidden" value="6" name="projectId" />
                                                        <input type="hidden" value="4" name="categoryid" />
                                                        <tbody>
                                                            <tr>
                                                                <td width="21%" bgcolor="#f3f3f3">
                                                                    <div align="right">项目名称</div>
                                                                </td>
                                                                <td width="2%" bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td width="77%" bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.projectName}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">申请单位</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.unitName}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">申请人</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.applicant}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">职称</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.grade}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">学历</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.education}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">填报时间</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.fillData}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">项目现状</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.status}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">项目前景</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.future}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">重难点分析</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.analysis}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">研究方法</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.way}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">预计研究成果</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.result}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">申请资金</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="left">{{projects.capital}}</div>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">专家评审意见</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">{{projects.expertOpinion}}</td>
                                                            </tr>
                                                            <tr>
                                                                <td bgcolor="#f3f3f3">
                                                                    <div align="right">专家评分</div>
                                                                </td>
                                                                <td bgcolor="#f3f3f3">&nbsp;</td>
                                                                <td bgcolor="#f3f3f3">{{projects.score}}</td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                    <div></div>
                                        </form>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <div class="table_wz"></div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <component :is="two"></component>
    </div>
</template>
<script>
    import four from '../../util/four';
    import aaa from '@/components/header.vue'
    import bbb from '@/components/footer.vue'
    export default {
        components: {
            aaa, bbb
        },
        data() {
            return {
                one: 'aaa',
                two: 'bbb',
                projects: {},
            }
        },
        mounted() {
            this.getProject();
        },
        methods: {
            getProject() {
                let pid = sessionStorage.getItem("pid");
                four.get("/projectManage/" + parseInt(pid)).then((res) => {
                    this.projects = res.data.data;
                });
            },
        },
    }
</script>